home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #1 / Ham Radio 2000.iso / ham2000 / tcp_ip / tnos / help100b / command.hlp next >
Encoding:
Text File  |  1993-12-07  |  50.7 KB  |  1,395 lines

  1. :?
  2. ? [commandname]
  3.  
  4. The TNOS '?' command provides a short list of all the top-level TNOS
  5. commands.
  6.  
  7. When you specify a commandname, the "?" command acts the same as the "help"
  8. command.
  9.  
  10. To obtain more help on a particular command, type the command name
  11. followed by a question mark.
  12.  
  13. >>  Example:  attach ?
  14.  
  15. See also: help
  16. :!
  17. !     [<DOS_external_command>]
  18.  
  19. The '!' command serves as a alias for the "shell command.
  20.  
  21. :abort
  22. abort [<session_number>]
  23.  
  24. Abort an FTP 'get', 'put' or 'dir' operation in progress.  If
  25. issued without an argument, the current session is aborted. (This
  26. command works only on FTP sessions).
  27.  
  28. When receiving a file, 'abort' simply resets the data connection;
  29. the next incoming data packet will generate a TCP RST (reset)
  30. response to clear the remote server.
  31.  
  32. When sending a file, 'abort' sends a premature end-of-file.
  33.  
  34. Note that in both cases 'abort' will leave a partial copy of the
  35. file on the destination machine; this copy must be removed
  36. manually if it is unwanted.
  37.  
  38. >> Example:  abort 3
  39. :arp
  40. arp
  41.  
  42. Display the Address Resolution Protocol (ARP) table that maps IP
  43. addresses to their link addresses (callsigns) on networks capable
  44. of broadcasting.  For each IP address entry the network type
  45. (e.g. Ethernet, AX.25), network address and time to expiration is
  46. shown.  If the link address (callsign) is currently unknown, the
  47. number of IP datagrams awaiting resolution is also shown.
  48.  
  49. arp add <host> ether|ax25|netrom|arcnet <ether_address>|<callsign> <iface>
  50.  
  51. arp drop <host> ether|ax25|netrom|arcnet <iface>
  52.  
  53. arp flush
  54.  
  55. arp publish <host> ether|ax25|netrom|arcnet <ether_address>|<callsign> <iface>
  56.  
  57. >> Example:  arp publish ns9ken ax25 NS9KEN-5 ax0
  58. :asystat
  59. asysyat
  60.  
  61. Display statistics on attached asynchronous communications interfaces (8250
  62. or 16550A).  The display for each port consists of three lines.
  63.  
  64. The first line gives the port label and the configuration flags; these
  65. indicate whether the port is a 16550A chip, the trigger character if any,
  66. whether CTS flow control is enabled, whether RLSD (carrier detect) line
  67. control is enabled, and the speed in bits per second.  (Receiving the
  68. trigger character causes the driver to signal upper layer software that data
  69. is ready; it is automatically set to the appropriate frame end character for
  70. SLIP, PPP and NRS lines.)
  71.  
  72. The second line of the status display shows receiver (RX) event counts: the
  73. total number of receive interrupts, received characters, receiver overruns
  74. (lost characters) and the receiver high water mark (HWM).
  75.  
  76. The HWM is the maximum number of characters ever read from the device during
  77. a single interrupt.  This is useful for monitoring system interrupt latency
  78. margins as it shows how close the port hardware has come to overflowing due
  79. to the inability of the CPU to respond to a receiver interrupt in time.
  80.  
  81. 8250 chips have no FIFO, so the HWM cannot go higher than 2 before overruns
  82. occur.  The 16550A chip, however, has a 16-byte receive FIFO which the
  83. software programs to interrupt the CPU when the FIFO is one-quarter full.
  84.  
  85. The HWM should typically be 4 or 5 when a 16550A is used; higher values
  86. indicate that the CPU has at least once been slow to respond to a receiver
  87. interrupt.
  88.  
  89. When the 16550A is used, a count of FIFO timeouts is also displayed on the
  90. RX status line.  These are generated automatically by the 16550A when three
  91. character intervals go by with more than 0 but less than 4 characters in
  92. the FIFO.  Since the characters that make up a SLIP or NRS frame are
  93. normally sent at full line speed, this count will usually be a lower bound on
  94. the number of frames received on the port, as only the last fragment of a
  95. frame generally results in a timeout (and then only when the frame is not
  96. a multiple of 4 bytes long).
  97.  
  98. Finally on the second line, the software FIFO overruns and HWM are displayed.
  99. These indicate whether the <bufsize> parameter on the 'attach' command needs
  100. to be adjusted.
  101.  
  102. The third line shows transmit (TX) statistics, including a total count of
  103. transmit interrupts, transmitted characters, the length of the transmit
  104. queue in bytes, the number of status interrupts, and the number of THREE
  105. timeouts.  The status interrupt count will be zero unless CTS flow control
  106. or RLSD line control has been enabled.  The THRE timeout is a stopgap measure
  107. to catch lost transmit interrupts, which seem to happen when there is a lot of
  108. activity (ideally, this will be zero).
  109. :at
  110. at
  111. :attach
  112. attach <hardware> <hw specific options>
  113.  
  114. Some of the possible hardware type are below. Not all are supported. Use
  115. "attach ?" for a list of those supported
  116.  
  117. attach 3c500 <ioaddress> <vector> arpa <interface> <qlen> <mtu> [<ipaddr>]
  118. attach asy <ioaddress> <vector> ax25 | nrs | ppp | slip <interface> <buffers>
  119.      <mtu> <speed> [<slip_options>]
  120. attach asy <ioaddress> <vector> ax25 <interface> <buffers> <mtu> <speed>
  121. attach asy <ioaddress> <vector> nrs <interface> <buffers> <mtu> <speed>
  122. attach asy <ioaddress> <vector> ppp <interface> <buffers> <mtu> <speed>
  123. attach asy <ioaddress> <vector> slip <interface> <buffers> <mtu>
  124.      <speed> [<slip_options>]
  125. attach axip <interface> <mtu> <their_host> <my_axip_callsign>
  126. attach drsi <ioaddress> <vector> ax25 <interface> <bufsize> <mtu>
  127.      <ch_a_speed> <ch_b_speed>
  128. attach eagle <ioaddress> <vector> ax25 <interface> <bufsize> <mtu> <speed>
  129. attach hapn <ioaddress> <vector> ax25 <interface> <bufsize> <mtu> csma | full
  130. attach hs <ioaddress> <vector> ax25 <interface> <bufsize> <mtu>
  131.      <key_up_delay> <p>
  132. attach kiss <existing_asy_interface> <port> <interface> [<mtu>]
  133. attach netrom
  134. attach packet <vector> <interface> <txqlen> <mtu>
  135. attach pc100 <ioaddress> <vector> ax25 <interface> <bufsize>
  136. attach pi
  137. attach scc <devices> init <addr> <spacing> <Aoff> <Boff><Dataoff>
  138.      <intack> <vec> [p|r]<clock> [<hardware_type>] [<param>]
  139. attach scc <chan> slip|kiss|nrs|ax25 <interface> <mtu> <speed>
  140.      <bufsize> [<callsign>]
  141. attach slfp
  142. :attended
  143. attended [on|off]                                     Default: on
  144.  
  145. Display or set the station attended flag.  When set to 'on',
  146. other stations can chat to you (with the 'ttylink' command, for
  147. example).
  148.  
  149. >> Example:  attended off
  150. :autoroute
  151. autoroute
  152. :ax25
  153. ax25 [sub-commands]
  154.  
  155. ax25 bc <interface>
  156. ax25 bcinterval [<seconds>]                 Default: 0 (disabled)
  157. ax25 bctext ["<broadcast_text"]
  158. ax25 blimit [<count>]                                 Default: 30
  159. ax25 digipeat [on | off]                              Default: on
  160. ax25 filter  [0 | 1 | 2 | 3]            Default: 0 (no filtering)
  161. ax25 flush
  162. ax25 heard
  163. ax25 hearddest <interface>
  164. ax25 irtt [<millisecs>]                             Default: 5000
  165. ax25 kick <&AXB>
  166. ax25 maxframe [<window_size>]                          Default: 1
  167. ax25 mycall [<callsign>]
  168. ax25 paclen [<bytes>]                                Default: 256
  169. ax25 pthresh [<bytes>]                               Default: 128
  170. ax25 reset <&AXB>
  171. ax25 retry [<count>]                                  Default: 10
  172. ax25 route
  173. ax25 route add <target_callsign> [digi_callsign ... ]
  174. ax25 route drop <target_callsign>
  175. ax25 route mode <target_callsign> [vc|datagram|interface]
  176. ax25 status [<&AXB>]
  177. ax25 t3 [<millisecs>]                                  Default: 0
  178. ax25 t4 [<seconds>]                                   Default:300
  179. ax25 timertype [original | linear | exponential]
  180. ax25 version [1|2]                                     Default: 2
  181. ax25 window [<bytes>]                               Default: 2048
  182. :bbs
  183. bbs
  184.  
  185. Enters your own Mailbox. For a list of all Mailbox commands, use the "?" and
  186. "help" command in the Mailbox.
  187. :bid
  188. bid
  189. :bulletin
  190. bulletin
  191. :connect
  192. connect <interface> <callsign> [<digi_callsign> ...]
  193.  
  194. Initiate a "vanilla" AX.25 session to the specified <callsign> using the
  195. specified <interface>.  Data sent on this session goes out in conventional
  196. AX.25 packets with no upper layer protocol. The de-facto presentation
  197. standard format is used, in that each packet holds one line of text,
  198. terminated by a CR.
  199.  
  200. Up to 7 optional digipeaters may be given; note that the words 'via' or 'v'
  201. are NOT used.  If digipeaters are specified, they are automatically added to
  202. the AX.25 routing table as though the 'ax25 route add' command had been given.
  203.  
  204. After giving the 'connect' command, you should get "Conn Pending" and then
  205. "Connected" messages.  At this point, you're connected just like using a
  206. plain old TNC.
  207.  
  208. When you're ready to disconnect, use the <F10> key to escape from the session
  209. back to the Command Session prompt, and then give the 'disconnect' command.
  210.  
  211. See also: split
  212.  
  213. >> Example:  connect tnc0 AX9AAA AX9DIG
  214. :callserver
  215. :callbook
  216. :cd
  217. cd [<directory>]
  218.  
  219. Changes the current directory to <directory>, which must be an
  220. existing directory on the local machine.
  221.  
  222. The directory specified can be relative to the current directory,
  223. or absolute, with the name beginning at the DOS root (/).
  224.  
  225. Without an argument, 'cd' simply displays the current directory
  226. without change.
  227.  
  228. The 'pwd' command is an alias for 'cd'.
  229.  
  230. >> Example:  cd spool/mqueue
  231. :close
  232. close [<session_number>]
  233.  
  234. Close the specified session.  If you are running only one session, entering
  235. 'close' without arguments will close the session.  If you have multiple
  236. sessions, entering 'close' without arguments will initiate a close on the
  237. current session.
  238.  
  239. If you are running multiple sessions, the 'session' command will display a
  240. list of these sessions.
  241.  
  242. Entering 'close' with a session number argument will initiate a close on the
  243. specified session.
  244.  
  245. On an AX.25 session, this command initiates a disconnect.
  246.  
  247. On an FTP or Telnet session, this command sends a FIN (i.e. initiates a close)
  248. on the session's TCP connection.  This is an alternative to asking the remote
  249. host to initiate a close (QUIT to FTP, or the logout command appropriate for
  250. the remote system in the case of Telnet).
  251.  
  252. If you are in an FTP or Telnet Converse session, you will have to press <F10>
  253. to escape to the "net>" prompt to issue the 'close' command.  When either FTP
  254. or Telnet sees the incoming half of a TCP connection close, it automatically
  255. responds by closing the outgoing half of the connection.  'Close' is more
  256. graceful than the 'reset' command, in that it is less likely to leave the
  257. remote host in a "half-open" state.
  258.  
  259. >> Example:  close 3
  260. :cls
  261. cls
  262.  
  263. Clears the current screen
  264. :color
  265. color <background> <foreground>
  266. :comm
  267. comm <interface> "<string>"
  268.  
  269. The 'comm' command sends a text-string via <interface>.  This can
  270. be used to send straight text to a TNC still in native TAPR
  271. command mode during NOS startup.
  272.  
  273. Note that the string is enclosed by double quote characters to
  274. preserve spaces, tabs etc.
  275.  
  276. >> Examples:  comm tnc0 "MYCALL NS9BOB-5"
  277.               comm tnc0 "MID 179"        (set CW ID interval)
  278.               comm tnc0 "KISS ON"
  279. :conference
  280. conference [hostname] [channel]
  281.  
  282. Enter the Conference Bridge at "hostname" (or locally, if no "hostname" is
  283. given). If "channel" is given, the initial channel will be set to "channel".
  284.  
  285. >> Example: conference ko4ks 105
  286. :convers
  287. conv
  288. :copy
  289. copy <file> <newfile>
  290. :disconnect
  291. disconnect [<session_number>]
  292.  
  293. An alias for the 'close' command (for the benefit of AX.25 users).
  294.  
  295. If you are in AX.25 converse mode, press <F10> to escape back to the Command
  296. Session prompt to issue this command.  If you are running only one session,
  297. entering 'disconnect' without arguments will terminate the connection.  If
  298. you have multiple sessions, entering disconnect without arguments will
  299. initiate a close on the current session.
  300.  
  301. If you are running multiple sessions, the "session" command will display a
  302. list of these sessions.  Entering 'disconnect' with a session number argument
  303. will initiate a 'close' on the specified session.  After entering disconnect,
  304. you should get "Disc pending" and then "Disconnected" messages.
  305.  
  306. >> Example:  close 3
  307. :delete
  308. delete <filename>
  309.  
  310. Delete a filename in the current working directory.
  311.  
  312. >> Example:  delete foo.txt
  313. :detach
  314. detach <interface>
  315.  
  316. Detach a previously attached interface from the system.  All IP routing table
  317. entries referring to this interface are deleted, and forwarding references by
  318. any other interface to this interface are removed.
  319.  
  320. >> Example:  detach tnc0
  321. :dialer
  322. dialer <interface> [<dialer_file> [<seconds> [<pings> [<host>]]]]
  323.  
  324. Set up an autodialer session for the interface.  Whenever the interface
  325. is idle for the interval in <seconds>, the autodialer will ping the
  326. <hostid>.  If there is no answer after <pings> attempts, the autodialer
  327. will execute the special commands contained in the <dialer_file>.
  328.  
  329. If the interval in <seconds> is zero, a previous dialer command process
  330. will be removed.  If the number of <pings> is zero, the <dialer_file>
  331. will be executed without pinging the <host>.
  332.  
  333. The file may have any valid name, and must be located in the TNOS root
  334. directory.
  335.  
  336. >> Examples:  dialer sl0 20 ns9tel ns9tel.dia
  337.               dialer sl0 ns9tel.dia 30 10 ns9tel
  338.  
  339. DIALER FILE COMMANDS
  340. ====================
  341.  
  342. control down|up
  343.  
  344. Control the 'asy' interface.  The 'down' option drops DTR and RTS.
  345. The 'up' option asserts DTR and RTS.
  346.  
  347. >>  Example:  control down
  348.  
  349. send "<string>"
  350.  
  351. This dialer command will write the specified string to the interface.
  352. The string quote marks are required, and the string may not contain
  353. embedded control characters.  However, the standard C string escape
  354. sequences are recognized (but \0 should not be used).
  355.  
  356. >> Example:  send "atdt555-1212"
  357.  
  358. speed [ 9600 | 4800 | 2400 | 1200 | 300 ]
  359.  
  360. This command sets the speed of the interface to one of the available
  361. speeds. If the speed is missing, the speed will be displayed in the
  362. dialer session window.
  363.  
  364. >> Example:  speed 1200
  365.  
  366. status [up | down]
  367.  
  368. wait <milliseconds> [ "test_string" ] [<speed>]
  369.  
  370. If only the time is specified, the dialer pauses for the desired number
  371. of milliseconds.  Otherwise, the dialer reads until the <test_ string>
  372. is detected on the interface.
  373.  
  374. If the string is not detected within the desired time, the autodialer
  375. will reset.  The string quote marks are required, and the string may
  376. not contain embedded control characters. However, the standard C string
  377. escape sequences are recognized (but \0 should not be used).
  378.  
  379. If the <speed> parameter is specified, the dialer will continue to read
  380. characters until a non-digit is detected.  The string read is converted
  381. to an integer, and used to set the interface speed.  If the trailing
  382. non-digit is not detected within the desired time, or the integer value
  383. is not a valid speed, the autodialer will reset.
  384.  
  385. >> Example:  wait 45000 "CONNECT" 1200
  386. :dir
  387. dir [<dirname>]
  388.  
  389. List the contents of the specified directory on the console. If no argument is
  390. given, the current directory is listed.
  391.  
  392. Note that this command works by first listing the directory into a temporary
  393. file, and then creating a 'more' session to display it.  After this completes,
  394. the temporary file is deleted.
  395.  
  396. >> Example:  dir spool/mail
  397. :domain
  398. domain addserver <host> [<host> ... ]
  399. domain cache clean [off|on]                          Default: off
  400. domain cache list
  401. domain cache size [<entries>]                         Default: 20
  402. domain cache wait <seconds>                          Default: 300
  403. domain dropserver <host> [<host> ...]
  404. domain list
  405. domain maxwait <seconds>                              Default: 60
  406. domain query <host>
  407. domain remote add <host> [<host> ...]
  408. domain remote drop <host> [<host> ...]
  409. domain remote list
  410. domain remote retry [<n>]                              Default: 2
  411. domain remote trace [on|off]                         Default: off
  412. domain retry [<n>]                                     Default: 2
  413. domain suffix [<domain_suffix>]                Default: ampr.org.
  414. domain trace [on|off]                                Default: off
  415. domain translate [on|off]                             Default: on
  416. domain verbose [on|off]                              Default: off
  417. :dump
  418. dump <hex_memory_address> | <.> [<decimal_range>]
  419.  
  420. The 'dump' command shows memory in hex and ascii.
  421.  
  422. <hex_memory_address> is a 32-bit value for a PC, split into page address and
  423. page offset.  A colon delimiter between page and offset is neither used nor
  424. accepted.
  425.  
  426. If decimal-range is not given, 128 bytes are displayed.
  427.  
  428. >> Example:  dump 1a2b3c4d     (to dump from address 1a2b:3c4d)
  429.  
  430. This produces a display of the form:
  431.  
  432. ................................................................
  433. |           Main Memory Dump Of Location 1A2B:3C4D             |
  434. |Addr (offset)       Hexadecimal                     Ascii     |
  435. |----                -----------                     -----     |
  436. |                                                              |
  437. |0000 16 26 ff 77 14 1e b8 ... 02 02 cd 41 83  .&.w..8>"P...MA.|
  438. |0010 c4 08 3d ff ff 75 05 ... 19 c4 5e ee 26  D.=..u.8..k.D^n&|
  439. |0020 c4 1f 8c 46 f0 89 5e ... 0b 46 f0 74 03  D..Fp.^n.Fn.Fpt.|
  440. |0030 e9 b9 fe 33 c0 8b e5 ... ec 83 ec 04 c4  i9~3@.e]KU.l.l.D|
  441. |0040 1e c2 77 8c 46 fe 89 ... c4 5e fc 26 8b  .Bw.F~.^|k2D^|&.|
  442. |0050 57 28 26 8b 47 26 bb ... 1f 3b d1 75 11  W(&.G&;..9..;Qu.|
  443. |0060 3b c3 75 0d ff 76 fe ... e8 1d 00 83 c4  ;Cu..v~.v|.h...D|
  444. |0070 04 c4 5e fc 26 c4 1f ... 5e fc 8b 46 fc  .D^|&D..F~.^|.F||
  445. |..............................................................|
  446. :echo
  447. echo [accept|refuse]                              Default: accept
  448.  
  449. Display or set the flag controlling client Telnet's response to a remote WILL
  450. ECHO offer.
  451.  
  452. The Telnet presentation protocol specifies that in the absence of a negotiated
  453. agreement to the contrary, neither end echoes data received from the other.
  454. In this mode, a Telnet client session echoes keyboard input locally and
  455. nothing is actually sent until a CR is typed.
  456.  
  457. Local line editing is also performed: backspace deletes the last character
  458. typed, while control-U deletes the entire line.
  459.  
  460. When communicating from keyboard to keyboard the standard local echo mode is
  461. used, so the setting of this parameter has no effect.  However, many
  462. timesharing systems (e.g. UNIX) prefer to do their own echoing of typed input.
  463. (This makes screen editors work right, among other things). Such systems send
  464. a Telnet WILL ECHO offer immediately upon receiving an incoming Telnet
  465. connection request.
  466.  
  467. If 'echo accept' is in effect, a client Telnet session will automatically
  468. return a DO ECHO response.  In this mode, local echoing and editing is turned
  469. off and each key stroke is sent immediately (subject to the Nagle tinygram
  470. algorithm in TCP).
  471.  
  472. While this mode is just fine across an Ethernet, it is clearly inefficient and
  473. painful across slow paths like packet radio channels.  Specifying 'echo
  474. refuse' causes an incoming WILL ECHO offer to be answered with a DONT ECHO;
  475. the client Telnet session remains in the local echo mode.  Sessions already in
  476. the remote echo mode are unaffected. (Note: Berkeley Unix has a bug in that
  477. it will still echo input even after the client has refused the WILL ECHO
  478. offer.  To get around this problem, enter the 'stty - echo' command to the
  479. shell once you have logged in).
  480.  
  481. >> Example:  echo accept
  482. :eol
  483. eol [unix | standard]                           Default: standard
  484.  
  485. Display or set Telnet's end-of-line behavior when in remote echo mode.  In
  486. 'standard' mode, each key is sent as is.  In 'unix' mode, CRs are translated
  487. to LFs.
  488.  
  489. This command is not necessary with all UNIX systems; use it only when you find
  490. that a particular system responds to LFs but not to CRs.
  491.  
  492. Only SunOS release 3.2 seems to exhibit this behavior; later releases are fixed.
  493.  
  494. >> Example:  eol standard
  495. :errors
  496. errors [on | off]
  497. :exit
  498. exit
  499.  
  500. Exit from NOS and return to DOS.
  501. :expire
  502. expire
  503. :finger
  504. finger <username[@host]> [<username[@host]> ...]
  505.  
  506. Issue a network 'finger' request for <username> at <host>. Finger is typically
  507. used to find out specific information about users on local or remote hosts.
  508. By fingering a user, you can find out such information as a user's name, his
  509. mailing address, telephone number, QSL information, and other useful facts.
  510. This information is kept in a separate text file for each user.
  511.  
  512. The finger command under NOS can be issued in any of the following three ways:
  513.  
  514.   finger <username>           >> Examples: finger bob
  515.   finger <username>@<host>                 finger bob@ns9bob
  516.   finger @<host>                           finger @ns9bob
  517.  
  518. :fkey
  519. fkey
  520.  
  521. Display the key_numbers for the function keys.  This command produces a chart
  522. with all possible function keys.
  523.  
  524. 'fn'  refers to Function_key_n
  525. 'sfn' refers to SHIFT-Function_key_n
  526. 'cfn' refers to CTRL-Function_key_n
  527. 'afn' refers to ALT-Function_key_n
  528. 'ar'  refers to the arrow keys
  529.  
  530. :fkey
  531. fkey <key_number> [<value> | "<string>" ]
  532.  
  533. Display or define a new setting for a function key.
  534.  
  535. Control characters can be included in the string by prefixing with the ^
  536. character (SHIFT 6 on most keyboards); e.g. CR is entered as ^M.  To insert a
  537. ^ in the string, enter ^^.
  538.  
  539. >> Examples:  fkey 87 "trace tnc0 211^M"  (SHIFT-F4 turns trace
  540.                                              on)
  541.               fkey 72 ""                  (disable up arrow)
  542.  
  543. :ftp
  544. ftp <host>
  545.  
  546. The command 'ftp' is used to initiate an FTP session with <host>. When the
  547. session is established, you will enter converse mode on the new FTP session.
  548.  
  549. When in converse mode with an FTP server, only the FTP sub-commands will be
  550. valid.  This will remain true until the FTP 'quit' command is issued, ending
  551. the FTP session, and returning you to the "net>" prompt.
  552.  
  553. When the connection between the two machines is opened, you'll get a banner
  554. from the remote machine, followed by a prompt for your user name and then your
  555. password.  If you've negotiated with the person at the remote machine to have
  556. a special user name and password set up for you in his or her FTPUSERS file,
  557. use that.
  558.  
  559. If not, use one of the special user names, "anonymous" or "guest" or "bbs",
  560. and in this case, use your callsign as your password. Your password is
  561. recorded in the log file on the remote host, allowing the manager of that
  562. host to keep track of FTP activity.
  563.  
  564. To perform an automatic login to selected hosts, you can set up the NET.RC
  565. file.  Each line in the file contains the hostname, user login name and
  566. password, each item separated by a space.
  567. :ftype
  568. ftype [ ascii | binary ]                           Default: ascii
  569.  
  570. Display or set the mode for FTP file transfer.  See the FTP
  571. 'type' sub-command.
  572.  
  573. If the architecture of the local and remote hosts is the same, it is
  574. preferable to set 'ftype' to binary, even for ASCII file transfers, as binary
  575. transfer is much quicker.
  576.  
  577. >> Example:  ftype binary
  578. :ftptdisc
  579. ftpdisc
  580. :help
  581. help
  582.  
  583. The NOS 'help' or '?' command provides help for all the top-level NOS
  584. commands. The "?" command by itself provides a list of the valid commands.
  585. The "help" command by itself provides a brief description of the commands.
  586. Either command followed by a commandname will provide information on that
  587. particular command, if available.
  588.  
  589. To obtain more help on a particular command, type the command name
  590. followed by a question mark.
  591.  
  592. >>  Example:  attach ?
  593. :history
  594. :hop
  595. The 'hop' commands are used to test the connectivity of the
  596. network.
  597.  
  598. :hop
  599. hop check <host>
  600.  
  601. Initiate a hop check session to the specified host. This uses a series
  602. of UDP "probe" packets with increasing IP time-to-live (TTL) fields to
  603. determine the sequence of gateways in the path to the specified
  604. destination.  This function is patterned after the UNIX 'traceroute'
  605. facility.
  606.  
  607. ICMP message tracing should be turned off before this command is executed
  608. (see the 'icmp trace' command).
  609.  
  610. >> Example:  hop check ns9liz
  611.  
  612. :hop
  613. hop maxttl [<hops>]                                   Default: 30
  614.  
  615. Display or set the maximum TTL value to be used in hop check sessions.
  616. This effectively bounds the radius of the search.
  617.  
  618. >> Example:  hop maxttl 10
  619.  
  620. :hop
  621. hop maxwait [<seconds>]                                Default: 5
  622.  
  623. Display or set the maximum interval that a hop check session will wait
  624. for responses at each stage of the trace.
  625.  
  626. >> Example: hop maxwait 60
  627.  
  628. :hop
  629. hop queries [<count>]                                  Default: 3
  630.  
  631. Display or set the number of UDP probes that will be sent at each stage
  632. of the trace.
  633.  
  634. >> Example:  hop queries 2
  635.  
  636. :hop
  637. hop trace [on | off]                                 Default: off
  638.  
  639. Display or set the flag that controls the display of additional
  640. information during a hop check session.
  641.  
  642. >> Example:  hop trace on
  643. :hostname
  644. hostname [<hostname>]
  645.  
  646. Display or set the local host name.  By convention this should be the same as
  647. the host's primary domain name.  This string is used only in the greeting
  648. messages of the various network servers; note that it does NOT set the
  649. system's IP address.
  650.  
  651. If <hostname> is the same as an <interface> defined in an 'attach' command,
  652. this command will search for a CNAME domain resource record which corresponds
  653. to the IP address of the <interface>.
  654.  
  655. >> Example:  hostname ns9bob
  656. :icmp
  657. icmp
  658.  
  659. These commands are for the Internet Control Message Protocol (ICMP) service.
  660.  
  661.  
  662. icmp echo [on | off]                                  Default: on
  663.  
  664. Display or set the flag controlling the asynchronous display of
  665. ICMP Echo Reply packets.  This flag must be on for one-shot pings
  666. to work (see the 'ping' command).
  667.  
  668. >> Example:  icmp echo off
  669.  
  670.  
  671. icmp status
  672.  
  673. Display statistics about ICMP, including the number of ICMP
  674. messages of each type sent or received.
  675.  
  676.  
  677. icmp trace [on | off]                                Default: off
  678.  
  679. Display or set the flag controlling the display of ICMP error
  680. messages.  These informational messages are generated by Internet
  681. routers in response to routing, protocol or congestion problems.
  682.  
  683. This option should be turned off before using the 'hop check'
  684. facility, because it relies on ICMP Time Exceeded messages, and
  685. the asynchronous display of these messages will be mingled with
  686. 'hop check' command output.
  687.  
  688. >> Example:  icmp trace on
  689. :ifconfig
  690. ifconfig
  691. :info
  692. info [hostname]
  693.  
  694. Start an Internet connection to the Information Center (INFO) at "hostname", or
  695. on the local system if no "hostname" is given
  696.  
  697. >> Example: info ko4ks.ampr.org
  698. :ip
  699. ip
  700. :isat
  701. isat [on | off]                                      Default: off
  702.  
  703. Display or set the AT flag.  If an AT-type clock is in use, set the flag 'on',
  704. to allow measurement of time in milliseconds. Otherwise, time is measured in
  705. clock ticks (55 milliseconds tick).
  706.  
  707. >> Example:  isat on
  708. :kick
  709. kick [<session_number>]
  710.  
  711. Kick all sockets associated with a session; if no argument is given, kick the
  712. current session.  Performs the same function as the 'ax25 kick' and 'tcp kick'
  713. commands, but is easier to type.
  714.  
  715. >> Example:  kick 3
  716. :lock
  717. lock
  718. :log
  719. log [stop | off | <filename>]                             Default: stop
  720.  
  721. Display or set the filename for logging server sessions.
  722.  
  723. If 'stop' or 'off' is given as the argument, logging is terminated (the servers
  724. themselves are unaffected).
  725.  
  726. If a file name is given as an argument, server session log entries will be
  727. appended to it.
  728.  
  729. >> Examples:  log dump/session.log
  730.               log stop
  731.  
  732. :lzw
  733. lzw <mode|bits>
  734. :mail
  735. mail
  736.  
  737. The 'mail' command allows you to escape from NOS and start an external mailer
  738. program.  When you exit from the mailer, you will be returned to NOS.
  739.  
  740. The BM mailer program (BM.EXE) and its startup script (BM.RC) must be located
  741. at the DOS root.
  742.  
  743. The ELM mailer (ELM.EXE) and its startup script (ELM.RC) may reside anywhere.
  744. Their location is specified by two DOS environment variables:
  745.  
  746.     MAILER defines the location of ELM.EXE.
  747.     HOME   defines the location of ELM.RC.
  748.  
  749.  
  750. >> Examples:  SET MAILER=c:\nos\elm.exe      (the ELM mailer)
  751.               SET HOME=c:\nos                (location of ELM.RC)
  752.  
  753. (Note that 'SET' is a DOS command, so pathnames require a backslash, not a
  754. forward slash).
  755. :mbox
  756. mbox
  757. :md
  758. md <directory>
  759.  
  760. Create a sub-directory in the current working directory.
  761.  
  762. See also: mkdir
  763.  
  764. >> Example:  md tmp
  765. :memory
  766. memory
  767. :mkdir
  768. mkdir <directory>
  769.  
  770. Create a sub-directory in the current working directory.
  771.  
  772. See also: md
  773.  
  774. >> Example:  mkdir tmp
  775. :mode
  776. mode <interface> [vc | datagram]                Default: datagram
  777.  
  778. Display or set the default transmission mode on the specified AX.25 interface.
  779.  
  780. In 'vc' (virtual circuit) mode, IP packets are encapsulated in AX.25 I-frames
  781. and are acknowledged at the link level according to the AX.25 protocol. Link
  782. level connections are opened if necessary. This is the conventional mode used
  783. by TNCs operating in native mode.
  784.  
  785. In 'datagram' mode, IP packets are encapsulated in AX.25 UI-frames and
  786. transmitted without any other link level mechanisms, such as connections or
  787. acknowledgements.
  788.  
  789. In both modes, ARP is used to map IP to AX.25 addresses. The defaults can be
  790. overridden with the type-of-service (TOS) bits in the IP header. Turning on
  791. the "reliability" bit causes I-frames to be used, while turning on the "low
  792. delay" bit uses UI-frames. (The effect of turning on both bits is undefined
  793. and subject to change).
  794.  
  795. In both modes, IP-level fragmentation is done if the datagram is larger than
  796. the interface MTU.  In virtual circuit mode, however, the resulting datagrams
  797. (or fragments) are further fragmented at the AX.25 layer if they are still
  798. larger than the AX.25 'paclen' parameter.
  799.  
  800. In AX.25 fragmentation, datagrams are broken into several I-frames and
  801. reassembled at the receiving end before being passed to IP.  This is
  802. preferable to IP fragmentation whenever possible because of decreased overhead 
  803. (the IP header isn't repeated in each fragment) and increased robustness (a
  804. lost fragment is immediately retransmitted by the link layer).
  805.  
  806. >> Example:  mode tnc0 vc
  807.  
  808. :mode
  809. mode netrom [vc | datagram]                     Default: datagram
  810.  
  811. Display or set the default transmission mode for NET/ROM transmissions.
  812. :more
  813. more <filename> [searchstring]
  814. Display the specified file a screen at a time.
  815.  
  816. To proceed to the next line, hit the CR key.
  817.  
  818. To proceed to the next screen, press the space bar.
  819.  
  820. To cancel the display, hit the 'q' key.
  821.  
  822. The 'more' command creates a session that you can suspend and resume just like
  823. any other session.
  824.  
  825. If a 'searchstring' is given, only lines that contain the 'searchstring' will
  826. be displayed.
  827.  
  828. >> Example:  more domain.txt
  829. :motd
  830. motd ["<string>"]
  831.  
  832. Display or set the system-wide Message-of-the-Day.  This message is sent when
  833. another station initiates a chat (ttylink) session with you.
  834.  
  835. >> Example:
  836.      motd "If unattended please leave a message in the mailbox"
  837. :multitask
  838. multitask [on|off]                                    Default: on
  839.  
  840. Display or set NOS multitasking.  When set to 'on', NOS continues to run when
  841. the user has issued the shell (!) or 'mail' command. This enables NOS to
  842. process packets and begin sessions even while the user is at the DOS prompt or
  843. in BM (or other mailer).
  844.  
  845. The disadvantage is increased memory usage, since memory cannot be allocated by
  846. NOS due to the presence of the other program. Thus most versions of NOS grab
  847. some memory before actually shelling out and this remains on the heap after NOS
  848. is re-entered.  Consequently the amount of core memory available drops
  849. significantly the first time a shell is used.
  850.  
  851. If the "xspawn" command is on, the multitask command is ignored.
  852.  
  853. See also: !, shell, and xspawn
  854.  
  855. >> Example:  multitask on
  856. :news
  857. news [hostname]
  858.  
  859. Start an Internet connection to the News Center (NEWS) at "hostname", or
  860. on the local system if no "hostname" is given
  861.  
  862. >> Example: news ko4ks.ampr.org
  863. :nntp
  864. :param
  865. param <interface> [<cmd> <value>]
  866.  
  867. The 'param' command allows device-specific control parameters to be sent to an
  868. interface, and the status to be read back from an interface.
  869.  
  870. On a KISS TNC interface, 'param' control packets to the TNC. Argument to the
  871. 'param' command are always decimal.
  872.  
  873. On a SLIP interface, the 'param' command allows the baud rate to be read
  874. (without arguments) or set.
  875.  
  876. The implementation of this command for the various interface drivers is
  877. incomplete and subject to change.
  878.  
  879. If no "cmd" and "value" are given, the 'param' command displays interface
  880. characteristics.  The actual data displayed depends on the interface type.
  881.  
  882. Specific commands for a KISS interface are shown below.
  883.  
  884. param <KISS_interface> 0 <data frame>
  885. param <KISS_interface> 1 <TX_delay>                  (10mS units)
  886. param <KISS_interface> 2 <persistence>                    (0-255)
  887. param <KISS_interface> 3 <slot_time>                 (10mS units)
  888. param <KISS_interface> 4 <TX_tail>                   (10mS units)
  889. param <KISS_interface> 5 <n>
  890. param <KISS_interface> 255                 (terminates KISS mode)
  891.  
  892. >> Example:  param tnc0 5 0                         (Half duplex)
  893. :ping
  894. ping <host> [<length> [<interval> [<incflag>]]]
  895.  
  896. Ping (send ICMP Echo Request packets to) the specified <host>.
  897.  
  898. By default the data field contains only a small timestamp to aid in determining
  899. round trip time; if the optional <length> argument is given, the appropriate
  900. number of data bytes (consisting of hex 55) are added to the ping packets.
  901.  
  902. If the <interval> parameter is supplied, pings will be repeated indefinitely at
  903. the specified interval in milliseconds.
  904.  
  905. If no interval value is supplied, a single, "one-shot" ping is done. Responses
  906. to one-shot pings appear asynchronously on the command screen, while repeated
  907. pings create a session that may be suspended and resumed.  Pinging continues
  908. until the session is manually reset.
  909.  
  910. The <incflag> option causes a repeated ping to increment the target IP address
  911. for each ping; it is an experimental feature for searching blocks of IP
  912. addresses for active hosts.
  913.  
  914. The round-trip times reported by the 'ping' command depend on the setting of
  915. the 'isat' mode.  If 'isat' is on, times are reported to the nearest
  916. millisecond.  If 'isat' is off, times are reported in multiples of 55mS.
  917.  
  918. >> Examples:  ping ns9liz
  919.               ping ns9liz 10 5000 1
  920. :pistatus
  921. :pop
  922. :popmail
  923. :ppp
  924. :prompt
  925. prompt [hostname | dirname]                             Default: hostname
  926.  
  927. Displays/toggles whether the Command Session prompt is the current Hostname
  928. or the current directory (like a DOS prompt, but in lower case).
  929.  
  930. >> Example: prompt dirname
  931. :ps
  932. ps
  933.  
  934. Display all current processes in the system. The fields are as follows:
  935.  
  936. PID:     Process ID (the address of the process descriptor).
  937.  
  938. SP:      The current value of the process stack pointer.
  939.  
  940. stksize: The size of the stack allocated to the process.
  941.  
  942. maxstk:  The apparent peak stack utilization of this process. This is done in
  943. a somewhat heuristic fashion, so the  numbers should be treated as approximate.
  944. If this number reaches or exceeds the stksize figure, the system is almost
  945. certain to crash; NOS program should be recompiled to give the process a larger
  946. allocation when it is started.
  947.  
  948. event:   The event this task is waiting for, if it is not runnable.
  949.  
  950. fl:      Process status flags. There are three: I (Interrupts enabled), W
  951. (Waiting for event) and S (suspended).
  952.  
  953. The I flag is set whenever a task has executed a pwait() call (wait for event)
  954. without first disabling hardware interrupts. Only tasks that  wait for
  955. hardware interrupt events will turn off this flag; this is done to avoid
  956. critical sections and missed interrupts.
  957.  
  958. The W flag indicates that the process is waiting for an event; the event column
  959. will be non-blank.  Note that although there may be several runnable processes
  960. at any time (shown in the 'ps' listing as those without the W flag and with
  961. blank event fields) only one process is actually running at any one instant
  962.  
  963. in and out:  The socket reference numbers.  Use the 'socket' command to obtain
  964. more detailed information.
  965. :pwd
  966. pwd [<directory>]
  967.  
  968. An alias for the 'cd' command.
  969.  
  970. >> Example:  pwd spool/mail
  971. :quote
  972. quote [hostname]
  973.  
  974. Start an Internet connection to the Quote-of-the-Day Server at "hostname", or
  975. on the local system if no "hostname" is given
  976.  
  977. >> Example: quote ko4ks.ampr.org
  978. :rarp
  979. rarp
  980.  
  981. Display RARP statistics.
  982.  
  983. The 'rarp' commands are associated with the Reverse Address
  984. Resolution Protocol (RARP).  RARP is used where a station knows
  985. its own Ethernet address or callsign but does not know its own IP
  986. address.
  987.  
  988. :rarp
  989. rarp query <interface> <ether_address|callsign> [<ether_address|callsign>...]
  990.  
  991. Issue a RARP request for an IP address for <ether_address> or
  992. <callsign>, via <interface>.
  993.  
  994. >> Examples:  rarp query tnc0 NS9ZZZ-5
  995.               rarp query en0 00:11:22:33:44:55
  996. :rd
  997. rd <directory>
  998.  
  999. Remove a sub-directory from the current working directory. The sub-directory
  1000. must be empty before 'rmdir' can be used.
  1001.  
  1002. See also: rmdir
  1003.  
  1004. >> Example:  rmdir tmp
  1005. :rdate
  1006. rdate <address>
  1007. :record
  1008. record [off | <filename>]                            Default: off
  1009.  
  1010. Opens <filename> and appends to it all data received or sent on the current
  1011. Telnet session.  (This includes up/downloading to a mailbox).
  1012.  
  1013. If you are in Telnet converse mode and want to initiate recording, you will
  1014. need to use the <F10> key to escape back to command mode to issue the 'record'
  1015. command.  The message "Recording into <filename>" will be displayed and another
  1016. Command Session prompt will be issued.  Enter CR on a blank line and you will
  1017. return to the Telnet converse mode with recording activated.
  1018.  
  1019. The command 'record off' stops recording and closes the file.
  1020.  
  1021. >> Example:  record dump/record/12345.rec
  1022. :remote
  1023. remote [-p port] [-k key] [-a kickaddr] <address> exit|reset|kick
  1024. :rename
  1025. rename <oldfilename> <newfilename>
  1026.  
  1027. Renames <oldfilename> to <newfilename>.
  1028.  
  1029. >> Example:  rename foo.bar foo2.bar
  1030. :reset
  1031. reset [<session_number>]
  1032.  
  1033. Reset the specified session; if no argument given, reset the current session.
  1034.  
  1035. This command should be used with caution since it does not reliably inform the
  1036. remote end that the connection no longer exists.  In TCP a reset (RST) message
  1037. will be automatically generated should the remote TCP send anything after a
  1038. local reset has been done.  In AX.25 the DM message performs a similar role.
  1039. Both are used to get rid of a lingering half-open connection after a remote
  1040. system has crashed.
  1041.  
  1042. >> Example: reset 3
  1043. :rmdir
  1044. rmdir <directory>
  1045.  
  1046. Remove a sub-directory from the current working directory. The sub-directory
  1047. must be empty before 'rmdir' can be used.
  1048.  
  1049. See also: rd
  1050.  
  1051. >> Example:  rmdir tmp
  1052. :route
  1053. :session
  1054. session [<session_number>] [flowmode [on|off]]           Default: off
  1055.  
  1056. NOS can handle multiple sessions.  For example, you can have an
  1057. FTP file transfer running at the same time as a Telnet session.
  1058.  
  1059. To monitor the sessions, use the 'session' command without
  1060. arguments.  This will give an output of the form:
  1061. ...............................................................
  1062.   #  S#  Type  Rcv Snd State          Remote socket
  1063.                 Q   Q
  1064.   1  -1  More   0   0 Limbo!      scripts/source/fkeys.lst
  1065.   2  144 FTP    0   0 Established ns9ken (ns9ken:ftp)
  1066.   3  148 Finger 0   1 SYN sent    ns9bob@ns9bob (ns9bob:finger)
  1067.  *4  151 Telnet 0   1 SYN sent    ns9gwa (ns9gwa:telnet)
  1068.   5  154 Telnet 0   0 Established Local BBS (ns9ken:telnet)
  1069. ..............................................................
  1070.  
  1071. The session marked with an asterisk is the current session; to switch to that
  1072. session, simply hit CR.
  1073.  
  1074. To switch to another session, give the 'session' command with a session number.
  1075.  
  1076. To exit from a session back to the 'net>' prompt, hit <F10>.
  1077.  
  1078. The <flowmode> option controls the operation of the 'more' command for that
  1079. session.  This is handy, for example, for long directory listings coming from
  1080. an FTP session.  Escaping to command mode before issuing an FTP 'dir' command
  1081. and setting flowmode 'on' gives a page at a time to look at.  At any time you
  1082. can escape out again and switch flowmode off.
  1083.  
  1084. >> Example:  session 3
  1085.              session 5 flowmode on
  1086. :script
  1087. script <scriptname> [back]
  1088.  
  1089. Executes an Information Server Script File directly from the Command Session.
  1090. If the third parameter is "back", the script is executed non-interactively
  1091. with no user I/O stream.
  1092.  
  1093. :shell
  1094. shell [<DOS_external_command>]
  1095.  
  1096. The 'shell' command suspends NOS and let you escape to a sub-shell
  1097. (e.g. COMMAND.COM in DOS).
  1098.  
  1099. If 'multitask' is set to 'off', NOS activity is frozen while you are working
  1100. under the sub-shell.
  1101.  
  1102. When you leave the sub-shell (with the EXIT command in DOS), you are returned
  1103. to NOS.
  1104.  
  1105. Note that for the 'shell' and '!' commands to be useful there must be
  1106. sufficient unused memory for the sub-shell and any commands which you wish to
  1107. run under the sub-shell.
  1108.  
  1109. You can also execute an external DOS command from NOS.
  1110.  
  1111. [Internal DOS commands such as 'cd' or 'dir' or 'copy' do not work].
  1112.  
  1113. See also: !, multitask and xspawn
  1114.  
  1115. >> Examples:  sh
  1116.               sh edlin test
  1117. :skick
  1118. skick <socket#>
  1119. :smtp
  1120. smtp
  1121. :socket
  1122. socket [<socket_ref_number>]
  1123.  
  1124. Without an argument, the 'socket' command displays all active local sockets,
  1125. giving their type, the address of the associated protocol control block (PCB),
  1126. remote socket if connected, and the owner's process ID and name.
  1127.  
  1128. To get more detailed information about the status of a particular socket, you
  1129. can include the socket reference number <S#> in the socket command.
  1130. :source
  1131. source <script_filename>
  1132.  
  1133. The 'source' command runs a set of NOS commands which are in
  1134. <script_filename>.  This is a very convenient way of executing a series of
  1135. commands without having to enter them individually at the keyboard.
  1136.  
  1137. >> Example:  source routing1.nos
  1138. :split
  1139. split <interface> <callsign> [<digi_callsign> ...]
  1140.  
  1141. This command is exactly like the "connect" command, except you are place
  1142. in a TTYLINK (split) screen.
  1143.  
  1144. See also: connect
  1145. :start
  1146. start ax25|callbook|convers|daytime|discard|echo|finger|ftp|info|netrom|news|
  1147. :start
  1148.       nntp|pop|pop2|pop3|quote|remote|rip|smtp|telnet|time|tip|ttylink|tutor
  1149.  
  1150. Start the specified Internet server, allowing remote connection requests.
  1151.  
  1152. Normally these servers are started in the AUTOEXEC.NOS file. However, you may
  1153. not want to start all of the servers automatically.  For example, you may not
  1154. want to start the Telnet server until you know you will be available at the
  1155. keyboard to respond.  You can then enter 'start telnet' from the Command
  1156. Session prompt to activate the server.
  1157.  
  1158. The one server that requires other parameters is "tip". The syntax is:
  1159.  
  1160.      start tip iface [modem]
  1161.  
  1162. If the "modem" parameter is given, then connection start when DCD is asserted
  1163. and are dropped by bringing DCD and DTR low. Leave this parameter off for
  1164. direct connections to a terminal.
  1165.  
  1166. >> Example:  start ttylink
  1167. :statline
  1168. statline [on | off]
  1169.  
  1170. Displays/toggles the state of the Command Session's status line. All sessions
  1171. started inherit this property. Each individual session can be toggled on/off,
  1172. using the <INSERT> key.
  1173.  
  1174. >> Example: statline off
  1175. :status
  1176. status
  1177.  
  1178. The 'status' command displays general system information. This is useful for
  1179. monitoring file transfer activity.
  1180. :stop
  1181. stop ax25|callbook|convers|daytime|discard|echo|finger|ftp|info|netrom|news|
  1182. :stop
  1183.      nntp|pop|pop2|pop3|quote|remote|rip|smtp|telnet|time|tip|ttylink|tutor
  1184.  
  1185. Stop the specified Internet server, rejecting any further remote connect
  1186. requests.  Existing connections are allowed to complete normally.
  1187.  
  1188. For example, you could enter 'stop telnet' if you expect to be unavailable to
  1189. respond to a Telnet request.  Then, when anyone tries to telnet to you, they
  1190. will get the message "Closed (Reset)."  This is not the most informative
  1191. message, but possibly better than waiting endlessly to see if you will
  1192. respond to the telnet request.
  1193.  
  1194. >> Example:  stop pop
  1195. :strace
  1196. strace [on | off]
  1197.  
  1198. Displays/toggles whether trace output is going to a separate trace session.
  1199. If this is off, trace output will always go on the current screen.
  1200.  
  1201. >> Example: strace on
  1202. :tail
  1203. tail <filename> [lines]
  1204.  
  1205. The 'tail' command displays the tail-end (the last 18 lines) of a file.
  1206.  
  1207. >> Example:  tail longfile.txt
  1208. :tcp
  1209. tcp
  1210. :telnet
  1211. telnet <host> [<port_number>]             Default port_number: 23
  1212.  
  1213. The 'telnet' command allows you to initiate a connection using the Telnet
  1214. protocol.  The end result is much the same as doing an AX.25 connect in most
  1215. cases, but you'll be taking advantage of the attributes of the TCP/IP protocols.
  1216.  
  1217. The command creates a Telnet session to the specified host.  With the default
  1218. port number (23), a connection is made to the Telnet server at the remote host.
  1219.  
  1220. If the remote host is running a NOS Telnet server (i.e. the host has issued
  1221. the command 'start telnet'), you will be connected to the BBS on that host.
  1222. See the 'bbs' command.
  1223.  
  1224. Once the connection is made, you can then type back and forth just as if you
  1225. were connected with a normal TNC.  When you're done, use the <F10> key to
  1226. escape back to command mode, and then type 'close' to close the connection.
  1227.  
  1228. The Telnet session can be recorded to a file (using the 'record' command), or
  1229. an ASCII file can be uploaded instead of entering the information at the
  1230. keyboard (using the 'upload' command).
  1231.  
  1232. >> Examples:  telnet ns9ken
  1233.               telnet ns9liz 87         (same as 'ttylink ns9liz')
  1234.               telnet ns9ken 25         (talk to SMTP)
  1235.  
  1236. The following is a list of the common port numbers used by TNOS:
  1237.  
  1238.     7  ECHO            25  SMTP              513  RLOGIN
  1239.     9  DISCARD         37  TIME             1235  CALLBOOK
  1240.    13  DAYTIME         79  FINGER           3597  NEWS CENTER
  1241.    17  QUOTE           87  TTYLINK          3598  INFORMATION CENTER
  1242.    20  FTP-data       109  POP-2            3599  LEARNING CENTER
  1243.    21  FTP-control    110  POP-3            3600  CONFERENCE BRIDGE
  1244.    23  TELNET         119  NNTP
  1245. :thirdparty
  1246. third-party [on|off]                                  Default: on
  1247.  
  1248. Display or set the third-party flag.  When set to 'on', the
  1249. mailbox will handle third-party messages.  [Most amateurs are not
  1250. permitted to do this].
  1251.  
  1252. >> Example:  third-party off
  1253. :time
  1254. time
  1255.  
  1256. Returns the current date and time
  1257.  
  1258. :tip
  1259. tip <interface>            (asyc only!)
  1260.  
  1261. Start a Terminal Interface Protocol (TIP) session that connects to the
  1262. specified interface in "dumb terminal" mode.
  1263.  
  1264. All data subsequently transmitted and received via the interface are raw
  1265. characters, without any protocol envelope.  Any packet traffic (IP datagrams,
  1266. etc) routed to the interface while a 'tip' session exists will be discarded.
  1267.  
  1268. The interface must have already been attached with the 'attach' command.
  1269.  
  1270. To close a 'tip' session, use the 'reset' command.  The interface will then
  1271. revert to normal slip, nrs or kiss mode operation.
  1272.  
  1273. This feature is primarily useful for manually communicating with a serial
  1274. device (e.g. a TNC operating in native "cmd:" mode), or for establishing SLIP
  1275. connections via modems.
  1276.  
  1277. >> Example:  tip tnc0
  1278. :trace
  1279. trace [<interface> [off | <BTIO_flags> [<tracefile>]]]
  1280.  
  1281. Controls packet tracing by the interface drivers.
  1282.  
  1283. The Broadcast/Type/Input/Output (BTIO) flag settings specify the amount of
  1284. information produced. Tracing is controlled on a per-interface basis; without
  1285. arguments, 'trace' gives a list of all defined interfaces and their tracing
  1286. status. The BTIO settings are expressed as a hexadecimal number as follows:
  1287.  
  1288. B=1:  Broadcast filter flag enabled.  Only packets specifically addressed to
  1289.       this interface will be displayed.  Broadcast packets will be ignored.
  1290.  
  1291. B=0:  Broadcast filter flag disabled.
  1292.  
  1293. T=2:  Protocol headers are decoded, and the entire packet (headers AND data)
  1294.       is also displayed in hexadecimal and ASCII, 16 characters per line.
  1295.       Unprintable characters are displayed as dots.
  1296.  
  1297. T=1:  Protocol headers are decoded, and data (but not the headers themselves)
  1298.       are displayed as ASCII characters, 64 characters/line.
  1299.  
  1300. T=0:  Protocol headers are decoded, but data is not displayed.
  1301.  
  1302. I=1:  Enable tracing of input packets.
  1303.  
  1304. I=0:  Disable tracing of input packets.
  1305.  
  1306. O=1:  Enable tracing of output packets.
  1307.  
  1308. O=0:  Disable tracing of output packets.
  1309.  
  1310. By default, trace output is displayed on the screen.
  1311.  
  1312. If a <trace_filename> is given, trace output is saved in the specified file.
  1313. The trace file is closed by setting the BTIO flags to 000.
  1314.  
  1315. >> Examples: trace tnc0 211 tnc0.trc   (save trace in 'tnc0.trc')
  1316.              trace tnc0 0              (stop trace & close file)
  1317. :tutor
  1318. tutor [hostname]
  1319.  
  1320. Start an Internet connection to the Learning Center (TUTOR) at "hostname", or
  1321. on the local system if no "hostname" is given
  1322.  
  1323. >> Example: tutor ko4ks.ampr.org
  1324. :ttylink
  1325. ttylink <address> [port]
  1326. :udp
  1327. udp status
  1328.  
  1329. Display the status of all UDP receive queues.
  1330. :upload
  1331. upload [<filename>]
  1332.  
  1333. The 'upload' command without a parameter returns the current upload status.
  1334.  
  1335. When a filename is specified in the command, the file is opened and sent as
  1336. though it were typed on the terminal.
  1337.  
  1338. The file must be ASCII, not binary.  If you want to upload a binary file,
  1339. you must first convert it to ASCII, using 'uuencode' for example.
  1340.  
  1341. If you are in converse mode and want to initiate uploading, you will need to
  1342. use the <F10> key to escape back to command mode to issue the 'upload'
  1343. command.  The uploading is initiated, but the file contents are not displayed
  1344. on the screen during the uploading.
  1345.  
  1346. To find out when uploading is finished, use the 'upload' command from time to
  1347. time.  While uploading is in progress, it will report "Uploading
  1348. <filename>", and when uploading is finished it will report "Uploading off".
  1349.  
  1350. >> Example:  upload foo.txt
  1351. :version
  1352. version
  1353.  
  1354. The 'version' command displays information about the TNOS package.
  1355. :watch
  1356. watch [on|off]                                       Default: off
  1357.  
  1358. The 'watch' command displays the current software stopwatch values, with min
  1359. and max readings for each.  This facility allows a programmer to measure the
  1360. execution time of critical sections of code with microsecond resolution.
  1361.  
  1362. This command is supported only on the IBM PC, and the meaning of each
  1363. stopwatch value depends on where the calls have been inserted for test
  1364. purposes; the distribution copy of NOS usually has no stopwatch calls.
  1365.  
  1366. [With some machines it may be essential to keep 'watch' turned off, as there
  1367. are unwanted side effects if it is turned on.]                  
  1368. :watchdog
  1369. watchdog   [on | off]                                Default: off
  1370.  
  1371. Display or set the watchdog timer.
  1372.  
  1373. If internal operations cease for 300 seconds and watchdog is enabled, a
  1374. system reset is performed.  This is useful for remote sites.
  1375.  
  1376. See also the 'remote' command.
  1377.  
  1378. >> Example:  watchdog on
  1379. :wpages
  1380. wpages
  1381. :write
  1382. write <user|sock#> <"msg">
  1383. :writeall
  1384. writeall <"msg">
  1385. :xspawn
  1386. xspawn [on | off]
  1387.  
  1388. Displays/toggles whether all DOS memory will be used for "shell" commands. If
  1389. "xspawn" is on, TNOS will be swapped to XMS (or disk, if no extended memory
  1390. is available). When the command executed is complete, TNOS is restored. If
  1391. this option is set, the state of the "multitask" command is ignored, since
  1392. TNOS can't be swapped out AND also multitasking.
  1393.  
  1394. See also: !, shell, and multitask
  1395.